<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      sgml-common-0.6.3
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;48.&nbsp;Standard Generalized Markup Language (SGML)
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="sgml.html" title=
          "Standard Generalized Markup Language (SGML)">Prev</a>
          <p>
            Standard Generalized Markup Language (SGML)
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="sgml-dtd-3.html" title=
          "docbook-3.1">Next</a>
          <p>
            docbook-3.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="sgml.html" title=
          "Chapter&nbsp;48.&nbsp;Standard Generalized Markup Language (SGML)">
          Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="sgml-common" name="sgml-common"></a>sgml-common-0.6.3
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to SGML Common
        </h2>
        <p>
          The <span class="application">SGML Common</span> package contains
          <span class="command"><strong>install-catalog</strong></span>. This
          is useful for creating and maintaining centralized SGML catalogs.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://sourceware.org/ftp/docbook-tools/new-trials/SOURCES/sgml-common-0.6.3.tgz">
                https://sourceware.org/ftp/docbook-tools/new-trials/SOURCES/sgml-common-0.6.3.tgz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download (FTP): <a class="ulink" href=
                "ftp://sourceware.org/pub/docbook-tools/new-trials/SOURCES/sgml-common-0.6.3.tgz">
                ftp://sourceware.org/pub/docbook-tools/new-trials/SOURCES/sgml-common-0.6.3.tgz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 103c9828f24820df86e55e7862e28974
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 75 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 1.5 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Downloads
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Required patch: <a class="ulink" href=
                "http://www.linuxfromscratch.org/patches/blfs/9.1/sgml-common-0.6.3-manpage-1.patch">
                http://www.linuxfromscratch.org/patches/blfs/9.1/sgml-common-0.6.3-manpage-1.patch</a>
              </p>
            </li>
          </ul>
        </div>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/sgml-common">http://wiki.linuxfromscratch.org/blfs/wiki/sgml-common</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of SGML Common
        </h2>
        <p>
          Instead of the normal convention of including the autotools files
          in the package, the maintainers included symlinks to the files in
          <code class="filename">/usr/share/automake</code>. For previous
          versions of <span class="application">Automake</span> this
          convention is correct, but recent versions of <span class=
          "application">Automake</span> install the internal files in version
          specific directories. This causes the <span class=
          "command"><strong>configure</strong></span> script to abort. To fix
          this error, the autotools are regenerated. Since the included
          <code class="filename">Makefile.am</code> file uses a syntax not
          supported by current versions of <span class=
          "application">Automake</span>, a patch is required to fix the
          syntax.
        </p>
        <pre class="userinput">
<kbd class=
"command">patch -Np1 -i ../sgml-common-0.6.3-manpage-1.patch &amp;&amp;
autoreconf -f -i</kbd>
</pre>
        <p>
          Install <span class="application">SGML Common</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make docdir=/usr/share/doc install &amp;&amp;

install-catalog --add /etc/sgml/sgml-ent.cat \
    /usr/share/sgml/sgml-iso-entities-8879.1986/catalog &amp;&amp;

install-catalog --add /etc/sgml/sgml-docbook.cat \
    /etc/sgml/sgml-ent.cat</kbd>
</pre>
        <div class="admon tip">
          <img alt="[Tip]" src="../images/tip.png" />
          <h3>
            Update Hint
          </h3>
          <p>
            Remove the above catalog items prior to upgrading (as the
            <code class="systemitem">root</code> user) with:
          </p>
          <pre class="userinput">
<kbd class="command">install-catalog --remove /etc/sgml/sgml-ent.cat \
    /usr/share/sgml/sgml-iso-entities-8879.1986/catalog &amp;&amp;

install-catalog --remove /etc/sgml/sgml-docbook.cat \
    /etc/sgml/sgml-ent.cat</kbd>
</pre>
        </div>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring SGML Common
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3">
            <a id="sgml-common-config" name="sgml-common-config"></a>
          </h3>
          <h4 class="title">
            <a id="sgml-common-config" name="sgml-common-config"></a>Config
            Files
          </h4>
          <p>
            <code class="filename">/etc/sgml/sgml.conf</code>
          </p>
        </div>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3"></h3>
          <h4 class="title">
            <a id="idm45779231691632" name=
            "idm45779231691632"></a>Configuration Information
          </h4>
          <p>
            No change in this file is necessary.
          </p>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">install-catalog and sgmlwhich</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Files:</strong> <span class=
              "segbody">SGML and XML DocBook entity files</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/etc/sgml,
              /usr/share/doc/sgml-common-0.6.3, and /usr/share/sgml</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="install-catalog" name=
                    "install-catalog"></a><span class="term"><span class=
                    "command"><strong>install-catalog</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    creates a centralized catalog that maintains references
                    to catalogs scattered throughout the <code class=
                    "filename">/usr/share/sgml</code> directory tree.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="sgmlwhich" name="sgmlwhich"></a><span class=
                    "term"><span class=
                    "command"><strong>sgmlwhich</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    will print to standard output the name of the main
                    configuration file.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="SGML-entities" name=
                    "SGML-entities"></a><span class="term"><code class=
                    "filename">SGML entities files</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contain the basic character entities defined with SDATA
                    entries.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="XML-entities" name="XML-entities"></a><span class=
                    "term"><code class="filename">XML entities
                    files</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contain the basic character entities defined by a
                    hexadecimal representation of the Unicode character
                    number.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-15 08:54:30 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="sgml.html" title=
          "Standard Generalized Markup Language (SGML)">Prev</a>
          <p>
            Standard Generalized Markup Language (SGML)
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="sgml-dtd-3.html" title=
          "docbook-3.1">Next</a>
          <p>
            docbook-3.1
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="sgml.html" title=
          "Chapter&nbsp;48.&nbsp;Standard Generalized Markup Language (SGML)">
          Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
